﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.TES.Entity.FunctionEntity
{
    [ActiveRecord("QuestionAnswer")]
    public class QuestionAnswer : EntityBase<QuestionAnswer>
    {
        [BelongsTo("QuestionID", Lazy = FetchWhen.OnInvoke)]
        public Question Question { get; set; }

        [BelongsTo("AnswerID", Lazy = FetchWhen.OnInvoke)]
        public Answer Answer { get; set; }
    }
}
